package com.kk.xhr.admin.biz;

import com.kk.xhr.admin.controller.request.RewardAddRequest;
import com.kk.xhr.admin.controller.request.RewardModifyRequest;
import com.kk.xhr.admin.controller.request.RewardQueryRequest;
import com.kk.xhr.admin.controller.vo.RewardVO;
import com.kk.xhr.common.pojo.BinaryEnum;
import com.kk.xhr.web.vo.PageVO;

import java.util.List;

/**
 * 奖惩biz服务接口
 *
 * @author kkmystery
 * @version 1.0 2021/3/7
 * @since 1.0.0
 */
public interface IRewardBizService {

    /**
     * 分页查询
     *
     * @param request 奖惩查询request
     * @return RewardVO
     */
    PageVO<RewardVO> queryPage(RewardQueryRequest request);

    /**
     * 查询我的奖惩
     *
     * @param userId 用户id
     * @return SalaryVO列表
     */
    List<RewardVO> queryMine(Long userId);

    /**
     * 批量添加奖惩
     *
     * @param request RewardAddRequest
     * @return 是否成功
     */
    boolean add(RewardAddRequest request);

    /**
     * 修改奖惩
     *
     * @param id      主键id
     * @param request RewardModifyRequest
     * @return 是否成功
     */
    boolean modify(Long id, RewardModifyRequest request);

    /**
     * 修改奖惩状态
     *
     * @param id     主键id
     * @param status 状态
     * @return 是否成功
     */
    boolean modifyStatus(Long id, BinaryEnum status);
}
